﻿using Apewer;
using System;
using System.Collections.Generic;
using System.Text;

namespace Apewer.Source
{

    /// <summary></summary>
    [Serializable]
    public class HttpRecord : Record
    {

        [NonSerialized]
        private TextSet _ts = new TextSet(true);

        /// <summary>NVarChar255</summary>
        [Column("_url_md5", ColumnType.NVarChar191)]
        public string UrlMd5 { get { return _ts["UrlMd5"]; } set { _ts["UrlMd5"] = value; } }

        /// <summary>NText</summary>
        [Column("_url_text", ColumnType.NText)]
        public string UrlText { get { return _ts["UrlText"]; } set { _ts["UrlText"] = value; } }

        /// <summary>NVarChar255</summary>
        [Column("_http_code", ColumnType.NVarChar191)]
        public string HttpCode { get { return _ts["HttpCode"]; } set { _ts["HttpCode"] = value; } }

        /// <summary>NText</summary>
        [Column("_http_status", ColumnType.NText)]
        public string HttpStatus { get { return _ts["HttpStatus"]; } set { _ts["HttpStatus"] = value; } }

        /// <summary>NText</summary>
        [Column("_http_exception", ColumnType.NText)]
        public string HttpException { get { return _ts["HttpException"]; } set { _ts["HttpException"] = value; } }

        /// <summary>NVarChar255</summary>
        [Column("_client_ip", ColumnType.NVarChar191)]
        public string ClientIp { get { return _ts["ClientIp"]; } set { _ts["ClientIp"] = value; } }

        /// <summary>NVarChar255</summary>
        [Column("_request_beginning", ColumnType.NVarChar191)]
        public string RequestBeginning { get { return _ts["RequestBeginning"]; } set { _ts["RequestBeginning"] = value; } }

        /// <summary>NVarChar255</summary>
        [Column("_request_ending", ColumnType.NVarChar191)]
        public string RequestEnding { get { return _ts["RequestEnding"]; } set { _ts["RequestEnding"] = value; } }

        /// <summary>NText</summary>
        [Column("_request_headers", ColumnType.NText)]
        public string RequestHeaders { get { return _ts["RequestHeaders"]; } set { _ts["RequestHeaders"] = value; } }

        /// <summary>NText</summary>
        [Column("_request_data", ColumnType.NText)]
        public string RequestData { get { return _ts["RequestData"]; } set { _ts["RequestData"] = value; } }

        /// <summary>NText</summary>
        [Column("_request_text", ColumnType.NText)]
        public string RequestText { get { return _ts["RequestText"]; } set { _ts["RequestText"] = value; } }

        /// <summary>NVarChar255</summary>
        [Column("_response_beginning", ColumnType.NVarChar191)]
        public string ResponseBeginning { get { return _ts["ResponseBeginning"]; } set { _ts["ResponseBeginning"] = value; } }

        /// <summary>NVarChar255</summary>
        [Column("_response_ending", ColumnType.NVarChar191)]
        public string ResponseEnding { get { return _ts["ResponseEnding"]; } set { _ts["ResponseEnding"] = value; } }

        /// <summary>NText</summary>
        [Column("_response_headers", ColumnType.NText)]
        public string ResponseHeaders { get { return _ts["ResponseHeaders"]; } set { _ts["ResponseHeaders"] = value; } }

        /// <summary>NText</summary>
        [Column("_response_data", ColumnType.NText)]
        public string ResponseData { get { return _ts["ResponseData"]; } set { _ts["ResponseData"] = value; } }

        /// <summary>NText</summary>
        [Column("_response_text", ColumnType.NText)]
        public string ResponseText { get { return _ts["ResponseText"]; } set { _ts["ResponseText"] = value; } }

    }

}
